package cn.ilovese.collect.vo.report;

import cn.ilovese.collect.po.report.Score;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@Data
@NoArgsConstructor
public class ScoreVO {
    private Integer id;
    private Integer reportId;
    private String username;
    private Integer userId;
    private Float score;
    private String description;
    private Integer likeNum;
    private Integer isReportOwnerLiked;
    private Integer isLoginUserLiked;

    public ScoreVO(@NonNull Score s){
        id = s.getId();
        userId = s.getUserId();
        reportId = s.getReportId();
        score = s.getScore();
        description = s.getDescription();
    }

}
